package com.cq.hd.admin.controller;

import com.cq.hd.admin.annotation.RequiresPermissionsDesc;
import com.cq.hd.common.pagination.Page;
import com.cq.hd.common.response.Result;
import com.cq.hd.member.api.TbMerchantAmtBillApi;
import com.cq.hd.member.api.dto.AdminMerchantAmtBillPageDto;
import com.cq.hd.member.api.vo.AdminMerchantAmtBillPageVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/merchantAmtBill")
@Api(tags = "商户资金明细相关接口")
public class TbMerchantAmtBillController {

    @Autowired
    private TbMerchantAmtBillApi merchantAmtBillApi;

    @ApiOperation(value = "商户资金流水")
    @RequiresPermissions("finance:merchantAmtBill:list")
    @RequiresPermissionsDesc(menu = {"财务管理", "商户账户明细"}, button = "查询")
    @GetMapping("/page")
    public Result<Page<AdminMerchantAmtBillPageVo>> page(AdminMerchantAmtBillPageDto adminMerchantAmtBillPageDto) {
        return merchantAmtBillApi.pageMerchantAmtBill(adminMerchantAmtBillPageDto);
    }

}
